package cn.net.csit.platform_cloud.basicmodel.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BasicObjDictionaryDomainExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BasicObjDictionaryDomainExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andObjCodeIsNull() {
            addCriterion("obj_code is null");
            return (Criteria) this;
        }

        public Criteria andObjCodeIsNotNull() {
            addCriterion("obj_code is not null");
            return (Criteria) this;
        }

        public Criteria andObjCodeEqualTo(String value) {
            addCriterion("obj_code =", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeNotEqualTo(String value) {
            addCriterion("obj_code <>", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeGreaterThan(String value) {
            addCriterion("obj_code >", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeGreaterThanOrEqualTo(String value) {
            addCriterion("obj_code >=", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeLessThan(String value) {
            addCriterion("obj_code <", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeLessThanOrEqualTo(String value) {
            addCriterion("obj_code <=", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeLike(String value) {
            addCriterion("obj_code like", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeNotLike(String value) {
            addCriterion("obj_code not like", value, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeIn(List<String> values) {
            addCriterion("obj_code in", values, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeNotIn(List<String> values) {
            addCriterion("obj_code not in", values, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeBetween(String value1, String value2) {
            addCriterion("obj_code between", value1, value2, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjCodeNotBetween(String value1, String value2) {
            addCriterion("obj_code not between", value1, value2, "objCode");
            return (Criteria) this;
        }

        public Criteria andObjNameIsNull() {
            addCriterion("obj_name is null");
            return (Criteria) this;
        }

        public Criteria andObjNameIsNotNull() {
            addCriterion("obj_name is not null");
            return (Criteria) this;
        }

        public Criteria andObjNameEqualTo(String value) {
            addCriterion("obj_name =", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotEqualTo(String value) {
            addCriterion("obj_name <>", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameGreaterThan(String value) {
            addCriterion("obj_name >", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameGreaterThanOrEqualTo(String value) {
            addCriterion("obj_name >=", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameLessThan(String value) {
            addCriterion("obj_name <", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameLessThanOrEqualTo(String value) {
            addCriterion("obj_name <=", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameLike(String value) {
            addCriterion("obj_name like", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotLike(String value) {
            addCriterion("obj_name not like", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameIn(List<String> values) {
            addCriterion("obj_name in", values, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotIn(List<String> values) {
            addCriterion("obj_name not in", values, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameBetween(String value1, String value2) {
            addCriterion("obj_name between", value1, value2, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotBetween(String value1, String value2) {
            addCriterion("obj_name not between", value1, value2, "objName");
            return (Criteria) this;
        }

        public Criteria andAuthorIsNull() {
            addCriterion("author is null");
            return (Criteria) this;
        }

        public Criteria andAuthorIsNotNull() {
            addCriterion("author is not null");
            return (Criteria) this;
        }

        public Criteria andAuthorEqualTo(String value) {
            addCriterion("author =", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorNotEqualTo(String value) {
            addCriterion("author <>", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorGreaterThan(String value) {
            addCriterion("author >", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorGreaterThanOrEqualTo(String value) {
            addCriterion("author >=", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorLessThan(String value) {
            addCriterion("author <", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorLessThanOrEqualTo(String value) {
            addCriterion("author <=", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorLike(String value) {
            addCriterion("author like", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorNotLike(String value) {
            addCriterion("author not like", value, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorIn(List<String> values) {
            addCriterion("author in", values, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorNotIn(List<String> values) {
            addCriterion("author not in", values, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorBetween(String value1, String value2) {
            addCriterion("author between", value1, value2, "author");
            return (Criteria) this;
        }

        public Criteria andAuthorNotBetween(String value1, String value2) {
            addCriterion("author not between", value1, value2, "author");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidIsNull() {
            addCriterion("obj_parent_uuid is null");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidIsNotNull() {
            addCriterion("obj_parent_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidEqualTo(String value) {
            addCriterion("obj_parent_uuid =", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidNotEqualTo(String value) {
            addCriterion("obj_parent_uuid <>", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidGreaterThan(String value) {
            addCriterion("obj_parent_uuid >", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidGreaterThanOrEqualTo(String value) {
            addCriterion("obj_parent_uuid >=", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidLessThan(String value) {
            addCriterion("obj_parent_uuid <", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidLessThanOrEqualTo(String value) {
            addCriterion("obj_parent_uuid <=", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidLike(String value) {
            addCriterion("obj_parent_uuid like", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidNotLike(String value) {
            addCriterion("obj_parent_uuid not like", value, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidIn(List<String> values) {
            addCriterion("obj_parent_uuid in", values, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidNotIn(List<String> values) {
            addCriterion("obj_parent_uuid not in", values, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidBetween(String value1, String value2) {
            addCriterion("obj_parent_uuid between", value1, value2, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjParentUuidNotBetween(String value1, String value2) {
            addCriterion("obj_parent_uuid not between", value1, value2, "objParentUuid");
            return (Criteria) this;
        }

        public Criteria andObjDescIsNull() {
            addCriterion("obj_desc is null");
            return (Criteria) this;
        }

        public Criteria andObjDescIsNotNull() {
            addCriterion("obj_desc is not null");
            return (Criteria) this;
        }

        public Criteria andObjDescEqualTo(String value) {
            addCriterion("obj_desc =", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotEqualTo(String value) {
            addCriterion("obj_desc <>", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescGreaterThan(String value) {
            addCriterion("obj_desc >", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescGreaterThanOrEqualTo(String value) {
            addCriterion("obj_desc >=", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescLessThan(String value) {
            addCriterion("obj_desc <", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescLessThanOrEqualTo(String value) {
            addCriterion("obj_desc <=", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescLike(String value) {
            addCriterion("obj_desc like", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotLike(String value) {
            addCriterion("obj_desc not like", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescIn(List<String> values) {
            addCriterion("obj_desc in", values, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotIn(List<String> values) {
            addCriterion("obj_desc not in", values, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescBetween(String value1, String value2) {
            addCriterion("obj_desc between", value1, value2, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotBetween(String value1, String value2) {
            addCriterion("obj_desc not between", value1, value2, "objDesc");
            return (Criteria) this;
        }

        public Criteria andOrganTypeIsNull() {
            addCriterion("organ_type is null");
            return (Criteria) this;
        }

        public Criteria andOrganTypeIsNotNull() {
            addCriterion("organ_type is not null");
            return (Criteria) this;
        }

        public Criteria andOrganTypeEqualTo(String value) {
            addCriterion("organ_type =", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotEqualTo(String value) {
            addCriterion("organ_type <>", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeGreaterThan(String value) {
            addCriterion("organ_type >", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeGreaterThanOrEqualTo(String value) {
            addCriterion("organ_type >=", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeLessThan(String value) {
            addCriterion("organ_type <", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeLessThanOrEqualTo(String value) {
            addCriterion("organ_type <=", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeLike(String value) {
            addCriterion("organ_type like", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotLike(String value) {
            addCriterion("organ_type not like", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeIn(List<String> values) {
            addCriterion("organ_type in", values, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotIn(List<String> values) {
            addCriterion("organ_type not in", values, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeBetween(String value1, String value2) {
            addCriterion("organ_type between", value1, value2, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotBetween(String value1, String value2) {
            addCriterion("organ_type not between", value1, value2, "organType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}